package com.xb;

import java.util.concurrent.ConcurrentLinkedQueue;

/**
 * @program: register-jerry
 * @description: 线程安全无界队列
 * @author: xu.bin
 * @create: 2020-11-22
 */
public class ConcurrentLinkedListDemo {

    public static void main(String []args){
        ConcurrentLinkedQueue<String> concurrentLinkedQueue=new ConcurrentLinkedQueue();
        concurrentLinkedQueue.add("张三");
        concurrentLinkedQueue.add("李四");
        String pushE=concurrentLinkedQueue.poll();
        System.out.println("pushE:"+pushE);
    }
            }